﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Thread01
{
    class Program
    {
        static void Main(string[] args)
        {
            ThreadStart methad = () => { Console.WriteLine("awdadada"); };
            Thread thread = new Thread(methad);
            thread.Start();
            thread.Suspend();//暂停线程
           
            thread.Resume();//恢复线程
            thread.Abort();//终结线程//抛异常 让线程自动结束  
        }
    }
}
